<?php
    include_once "../config/classes/class.Config.php";
    $cfg = new config();
    if (!class_exists("phpGrid")) include_once $cfg->pathConfig."/phpGrid/conf.php";   
   
    
    /* Grid Elementos */
    $electro_grid = new C_DataGrid("SELECT *, concat('http://localhost/locator/info_elems/edit_elem.php?id=',id) AS 'edit' FROM info_elem","id","Elementos");

    $electro_grid -> enable_resize(true);
    $electro_grid -> set_dimension(1000, 200);
    $electro_grid -> set_theme("south-street");
    $electro_grid -> set_col_link("edit");

    $electro_grid -> enable_search(true);
    $electro_grid -> enable_autowidth(true);
    //$electro_grid -> set_jq_editurl($cfg->pathElems."/edit_elem.php");
    //$electro_grid -> set_col_img("foto");
    //$electro_grid -> enable_edit("FORM","CRUD");

    //$electro_grid->enable_debug(true);
    $electro_grid->display();
    
    
    
    /* Grid usuarios */
    $users_grid   = new C_DataGrid("SELECT * FROM usuarios","id","Usuarios");
    
    $users_grid -> enable_resize(true);
    $users_grid -> set_dimension(1000, 200);
    $users_grid -> set_theme("south-street");
    $users_grid -> enable_search(true);
//    $users_grid -> enable_edit("FORM","CRUD");

    
    $users_grid->display();
    
?>
